package com.nervenets.template.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class DataOfUserEvent extends ApplicationEvent {
    private final long unionId;

    public DataOfUserEvent(Type type, long unionId) {
        super(type);
        this.unionId = unionId;
    }

    public enum Type {
        newer, pay, refund
    }
}
